

class Person:
    name = 0
    att = 10
    life = 100

    def __init__(self, name):
        self.name = name

    def attack(self, dog):
        dog.life = dog.life - self.att

    def be_attack(self, dog):
        self.att = self.att - 2
        if self.att <= 0:
            self.att = 0
